﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhouYu.NewWorld.DAL.IRepository;
using ZhouYu.NewWorld.Model;
using ZhouYu.NewWorld.ViewModel;

namespace ZhouYu.NewWorld.BLL.IService
{
    public interface IHotelService : IBaseRepository<Hotel>, IDenpendecy
    {
        /// <summary>
        /// 多表添加
        /// </summary>
        /// <param name="hotel"></param>
        /// <param name="hotelDetails"></param>
        /// <returns></returns>
        ResponseResult BatchAdd(HotelTemporary temporary);

        /// <summary>
        /// 多表查询
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <returns></returns>
        ResponseResult GetHotelInfo(int page, int limit);

        /// <summary>
        /// 多表编辑
        /// </summary>
        /// <param name="hotel"></param>
        /// <param name="hotelDetails"></param>
        /// <returns></returns>
        ResponseResult UpdateHotel(HotelTemporary temporary);

        /// <summary>
        /// 多表删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ResponseResult DeleteHotel(int id);
    }
}
